import { createStore } from 'vuex';

const store = createStore({
  modules: {},
  state() {
    return {
      userInfo: {}
    };
  },
  actions: {
  },
  getters: {
    userInfo: state => state.userInfo
  },
  mutations: {
    setUserInfo(state, userInfo) {
      state.userInfo = userInfo || {}
    }
  }
});

export default store;
